package com.bqtv.sport.adapter

import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bqtv.sport.R
import com.bqtv.sport.databinding.ItemActivityCenterBinding
import com.chad.library.adapter4.BaseQuickAdapter
import com.bqtv.sport.databinding.ItemHomeHotBinding
import com.bqtv.sport.databinding.ItemHomeTodayBinding
import com.bqtv.sport.databinding.ItemLiveAnalyzeBigRateBinding

class LiveAnalyzeBigRateAdapter :
    BaseQuickAdapter<String, LiveAnalyzeBigRateAdapter.VH>() {
    class VH(
        parent: ViewGroup,
        val binding: ItemLiveAnalyzeBigRateBinding = ItemLiveAnalyzeBigRateBinding.inflate(
            LayoutInflater.from(parent.context), parent, false
        ),
    ) : RecyclerView.ViewHolder(binding.root)

    override fun onCreateViewHolder(context: Context, parent: ViewGroup, viewType: Int): VH {
        // 返回一个 ViewHolder
        return VH(parent)
    }

    override fun onBindViewHolder(holder: VH, position: Int, item: String?) {
        // 设置item数据
        if (position==0){
            holder.binding.vLeft.visibility=ViewGroup.GONE
        }else{
            holder.binding.vLeft.visibility=ViewGroup.VISIBLE
        }
//        holder.binding.vDote.setBackgroundResource(R.drawable.bg_round_c6c6c6)
//        holder.binding.vDote.setBackgroundResource(R.drawable.bg_round_ff4854)
//        holder.binding.vDote.setBackgroundResource(R.drawable.bg_round_ffbe00)
    }
}